using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using Microsoft.SharePoint;

namespace LenninSoftware.FormEditor
{
    public abstract class BaseControlAdapter
    {

        public abstract Control CreateControl(FieldInfo field);

        public abstract Control CreateReadOnlyControl(FieldInfo field);

        public abstract void LoadReadOnlyData(Control control, SPListItem item, object data);

        public abstract void LoadData(Control control, SPListItem item, object data);

        public abstract bool isEmpty(Control control);

        public abstract object SaveData(Control control, SPListItem item, object currentData);

        public abstract void Reset(Control control);

    }
}
